﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EnterpriseUserWC.ascx.cs"
    Inherits="MadeInPortugalWebApplication.EnterpriseUserWC" %>
<section id="page">
<table>
    <tr>
        <td align="right">
            User
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <span>
                <asp:TextBox ID="TbxUserName" CssClass="inputBig" runat="server" 
                MaxLength="50"></asp:TextBox></span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="TbxUserName" ErrorMessage="User name missing"><asp:Image 
                runat="server" src="../Style/img/error.png" ToolTip="Mandatory field" 
                width="20px" /></asp:RequiredFieldValidator>
            <asp:Label ID="lblUserError" runat="server" Text="User already registered" 
                Enabled="False" ForeColor="Red"></asp:Label>
        </td>
        <td rowspan="14" valign="top">
            <asp:Image ID="imgLogo" runat="server" Width="80px" />
        </td>
    </tr>
    <tr>
        <td align="right">
            Password
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <span>
                <asp:TextBox ID="TbxUserPassword" TextMode="Password" CssClass="inputBig" runat="server"></asp:TextBox></span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                ControlToValidate="TbxUserPassword" ErrorMessage="Password missing"><asp:Image 
                runat="server" src="../Style/img/error.png" ToolTip="Mandatory field" 
                width="20px" /></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ErrorMessage="Passwords do not match" ControlToCompare="TbxUserPassword" 
                ControlToValidate="TbxUserRePassword"><asp:Image ID="Image1" 
                runat="server" src="../Style/img/error.png" ToolTip="Passwords do not match" 
                width="20px" /></asp:CompareValidator>
        </td>
    </tr>
    <tr>
        <td align="right">
            Repeat Password
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <span>
                <asp:TextBox ID="TbxUserRePassword" TextMode="Password" CssClass="inputBig" runat="server"></asp:TextBox></span>
        </td>
    </tr>
    <tr>
        <td align="right">
            Name
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <span>
                <asp:TextBox ID="TbxName" CssClass="inputBig" runat="server"></asp:TextBox></span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="tbxName" ErrorMessage="Name Missing"><asp:Image 
                runat="server" src="../Style/img/error.png" ToolTip="Mandatory field" 
                width="20px" /></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td align="right">
            Address
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <span>
                <asp:TextBox ID="TbxAddress" CssClass="inputBig" runat="server"></asp:TextBox></span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="TbxAddress" ErrorMessage="Address Missing"><asp:Image 
                runat="server" src="../Style/img/error.png" ToolTip="Mandatory field" 
                width="20px" /></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td align="right">
            City
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <span>
                <asp:TextBox ID="TbxCity" CssClass="inputBig" runat="server"></asp:TextBox></span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="TbxCity" ErrorMessage="City missing"><asp:Image 
                runat="server" src="../Style/img/error.png" ToolTip="Mandatory field" 
                width="20px" /></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td align="right">
            P.O. Box
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <span>
                <asp:TextBox ID="TbxPostalCode" CssClass="inputBig" runat="server"></asp:TextBox></span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="TbxPostalCode" ErrorMessage="P.O Box missing"><asp:Image 
                runat="server" src="../Style/img/error.png" ToolTip="Mandatory field" 
                width="20px" /></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td align="right">
            Phone
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <span>
                <asp:TextBox ID="TbxPhone" CssClass="inputBig" runat="server"></asp:TextBox></span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ControlToValidate="TbxPhone" ErrorMessage="Phone number missing"><asp:Image 
                runat="server" src="../Style/img/error.png" ToolTip="Mandatory field" 
                width="20px" /></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td align="right">
            Email
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <span>
                <asp:TextBox ID="TbxEmail" CssClass="inputBig" runat="server"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="TbxEmail" ErrorMessage="Invalid Format" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"><asp:Image ID="Image2" 
                runat="server" src="../Style/img/error.png" ToolTip="Incorrect email" 
                width="20px" /></asp:RegularExpressionValidator>
            &nbsp;</span><asp:Label ID="lblEmailError" runat="server" 
                Text="Email already registered" Enabled="False" ForeColor="Red"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="right">
            Enterprise Name
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <span>
                <asp:TextBox ID="TbxEnterprise" CssClass="inputBig" runat="server"></asp:TextBox></span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                ControlToValidate="TbxEnterprise" ErrorMessage="Enterprise name missing"><asp:Image 
                runat="server" src="../Style/img/error.png" ToolTip="Mandatory field" 
                width="20px" /></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td align="right">
            User Type</td>
        <td>
            &nbsp;</td>
        <td>
            <asp:RadioButtonList ID="rdbUsertype" runat="server">
                <asp:ListItem Selected="True">User</asp:ListItem>
                <asp:ListItem>Enterprise</asp:ListItem>
            </asp:RadioButtonList>
        </td>
    </tr>
    <tr>
        <td align="right">
            Logo</td>
        <td>
            &nbsp;
        </td>
        <td>
            <asp:FileUpload ID="FileLogoUpload" runat="server" />
        </td>
    </tr>
</table>
            <p class="buttons" align="right">
            <asp:LinkButton ID="BtnSend1" runat="server" CssClass="button" OnClick="BtnSend_Click"><span>Register</span></asp:LinkButton>
            <span>ou</span> <a href="#" class="cancel">Cancelar</a>
            </p>

        <%--<p class="buttons">
            <asp:LinkButton ID="LinkButton1" runat="server" CssClass="button" PostBackUrl="~/Item.aspx"><span>Insert Product</span></asp:LinkButton>
            </p>--%>


</section>
